package com.wqc;

import com.wqc.annotation.HelloAnnotation;

@HelloAnnotation(say = "Do it!")
public class AnnotationTest {

    public static void main(String[] args) {

        System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles","true");

        HelloAnnotation annotation = AnnotationTest.class.getAnnotation(HelloAnnotation.class);//获取TestMain类上的注解对象
        System.out.println(annotation.say());//调用注解对象的say方法，并打印到控制台
    }
}
